package com.example.baiduapi.Util;

public class ControllerLoading {
    public static void main(String[] args) {
        loading(null);
    }

    public static void loading(String value){
        for (int i = 0; i < 10; i++) {

            System.out.print(i*10+"%");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.print('\r');
        }
    }
}
